<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<link rel="stylesheet" href="statics/css/SystemCenter/tpl/newupuser.css">
<link rel="stylesheet" href="statics/css/SystemCenter/usersettings.css">
<%--<link rel="stylesheet" href="statics/css/modules/formSelects-v4.css" />--%>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <img class="img " src="statics/images/titheader.svg">
            <span ></span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <form class="layui-form layui-from-pane" action="" id="userUpdate-form" lay-filter="userUpdate-form">
                    <div class="layui-col-xs10">
                        <div class="layui-form-item">
                           <%-- <div class="layui-inline">
                                <label class="layui-form-label">用户编号</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="code" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>--%>
                           <%-- <div class="layui-inline">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="userpassword" required lay-verify="required" autocomplete="off"  class="layui-input">
                                </div>
                            </div>--%>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">用户姓名</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">英文名</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="englishName" autocomplete="off"  class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                           <%-- <div class="layui-inline">
                                <label class="layui-form-label">部门名称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="departmentCode" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>--%>
                           <div class="layui-inline">
                               <label class="layui-form-label">用户编号</label>
                               <div class="layui-input-inline">
                                   <input type="text" name="code" required lay-verify="required" autocomplete="off" class="layui-input">
                               </div>
                           </div>
                        <Rolue:operate operateID="systemcenter_newuser_info" roleID="systemcenter_newuser_info" mark="测试 ">
                            <div class="layui-inline">
                                   <label class="layui-form-label">角色</label>
                                <div class="layui-input-inline">
                                    <div id="rolesCode" class="xm-select-demo"></div>
                                </div>
<%--                                   <div class="layui-input-inline">--%>
<%--                                       <input type="text" name="roles2"  id="roles2" required lay-verify="required" autocomplete="off" class="layui-input">--%>
<%--                                       <input type="hidden" name="roles"  id="roles" required lay-verify="required" autocomplete="off" class="layui-input">--%>
<%--                                   </div>--%>
                               </div>
                        </Rolue:operate>
                           <%-- <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-inline">
                                    &lt;%&ndash;//lay-filter="texsselect" multiple=""&ndash;%&gt;
                                &lt;%&ndash;<select multip name="roles"  id="roles"  >
                                      <option value=""></option>
                                       <option value="1">角色1</option>
                                       <option value="2">角色2</option>
                                  </select>&ndash;%&gt;
                                   <input type="text" name="roles" readonly id="roles">

                                </div>
                            </div>--%>




                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">性别</label>
                                <div class="layui-input-inline">
                                    <select name="sex" lay-filter="texsselect2" id="sex">
                                        <option value="1" selected>男</option>
                                        <option value="0">女</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">入职日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="birthday" required lay-verify="required" class="layui-input" id="birthday" placeholder="yyyy-MM-dd">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">邮件地址</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="email" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">家庭住址</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="address" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">电话</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="telephone" required lay-verify="required" lay-verify="phone" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">手机</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="phone" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">QQ</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="qq" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        <Rolue:operate operateID="systemcenter_newuser_info" roleID="systemcenter_newuser_info" mark="测试 ">
                             <div class="layui-inline">
                                <label class="layui-form-label">是否管理层</label>
                                <div class="layui-input-inline">
                                  <%--  <input type="text" name="msn" autocomplete="off" class="layui-input">--%>
                                      <select name="msn" lay-filter="texsselect2" id="msn">
                                          <option value="否">否</option>
                                          <option value="是" selected>是</option>

                                      </select>
                                </div>
                            </div>
                        </Rolue:operate>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">Skype</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="skype" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">阿里旺旺</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="ww" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">所属部门</label>
                                <div class="layui-input-inline">
                                    <select name="departmentCode" id="departmentCode">
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                        <Rolue:operate operateID="systemcenter_newuser_info" roleID="systemcenter_newuser_info" mark="测试 ">
                            <div class="layui-inline">
                                <label class="layui-form-label">管理组</label>
                                <div class="layui-input-inline">
                                    <div id="customerRole" class="xm-select-demo"></div>
                                </div>
                            </div>
                        </Rolue:operate>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">中文签字章</label>
                                <div class="layui-input-inline">
                                    <div class="layui-upload-drag uploadimg" lay-data="{id: 'chinesesign'}">
                                        <img name="" id="chinaSealUrl" src="statics/images/layui-logo.jpg" alt="上传成功后渲染" style="max-width: 180px" >
                                        <input name="chinaSealUrl" type="hidden">
                                        <div class="padding text-center">
                                            <input type="button" class="layui-btn uploadimg" lay-data="{id: 'chinaSealUrl'}" id="chinaSealUrladd" style="margin-right: 10px!important;" value="添加">
                                            <input type="button" class="layui-btn layui-btn-danger" id="chinaSealUrldel"  value="清空">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">英文签字章</label>
                                <div class="layui-input-inline">
                                    <div class="layui-upload-drag uploadimg" lay-data="{id: 'englishsign'}">
                                        <img name="" id="englishSealUrl" src="statics/images/layui-logo.jpg" alt="上传成功后渲染" style="max-width: 180px" >
                                       <input name="englishSealUrl" type="hidden">
                                        <div class="padding text-center">
                                            <input type="button" class="layui-btn uploadimg" lay-data="{id: 'englishSealUrl'}" id="englishSealUrladd" style="margin-right: 10px!important;" value="添加">
                                            <input type="button" class="layui-btn layui-btn-danger" id="englishSealUrldel"  value="清空">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-block">
                                <textarea name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit  lay-filter="user-form-element" id="tj">提交</button>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs2">
                        <div class="userimgdiv" align="center">
                            <img src="statics/images/layui-logo.jpg" id="headimg" style="max-width: 180px" />
                            <input name="headimg" type="hidden">
                            <div class="padding text-center">
                                <input type="button" class="layui-btn uploadimg" lay-data="{id: 'headimg'}" id="headingadd" style="margin-right: 10px!important;" value="添加">
                                <input type="button" class="layui-btn layui-btn-danger" id="headimgdel"  value="清空">
                            </div>
                        </div>
                    </div>

                    <div class="layui-row" id="logRow">
                        <div class="layui-col-xs12">
                            <div class="layui-tab layui-tab-card">
                                <ul class="layui-tab-title">
                                    <li class="layui-this">日志</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div  class="layui-tab-item  layui-show">
                                        <table class="layui-table" id="userLog" lay-filter="userLogTable"></table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
    <div id="erelevance" style="display: none;">
        <table class="layui-hide" id="erelevanceid" lay-filter="erelevanceid"></table>
        <div>
            <input type="button" class="layui-btn" value="提交" id="erelevancetj">
        </div>
    </div>
</div>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/selectMultip.js"></script>
<%--<script src="statics/modules/formSelects-v4/formSelects-v4.js"></script>--%>
<script src="statics/js/SystemCenter/tpl/newupuser.js"></script>


